public class 两个老虎1 {
    public static void main(String[] args) {
        System.out.println("案例");

        /*两个老虎 体重分别是180kg,200kg.
        需求：判断两个老虎体重是否相同
        */
        int weight1 = 180;
        int weight2 = 200;
        //用三元运算符判断老虎体重
        boolean b = weight1 == weight2 ? true : false;
        System.out.println("b:" + b);
    }
    }
